import { connect } from "react-redux";

import LoginUI from "./ui/login";

/**
 * 映射状态 到  props
 * @returns
 */
const mapStateToProps = (state) => {
  return {
    username: state.username,
    password: state.password,
  };
};

/**
 * 映射分发属性到 到  props
 * @returns
 */
const mapDispatchToPropsParam = () => {};

export default connect(mapStateToProps, mapDispatchToPropsParam)(LoginUI);
